﻿aux_source_directory(. EXAMPLE_SRC_LIST)
foreach (EXAMPLE_SRC ${EXAMPLE_SRC_LIST})
    STRING(REGEX REPLACE "^\\./|\\.c[a-zA-Z0-9_]*$" "" EXAMPLE_EXE_NAME ${EXAMPLE_SRC})
    message(STATUS "添加用例程序:${EXAMPLE_EXE_NAME}")
    add_executable(${EXAMPLE_EXE_NAME} ${EXAMPLE_SRC} )
    target_link_libraries(${EXAMPLE_EXE_NAME} ${PROJECT_NAME} ${LINK_LIB_LIST})


endforeach (EXAMPLE_SRC ${EXAMPLE_SRC_LIST})
